adding support for joining inner streams