added support for multiple source joins