adds support for remote streams