window join modified for new api