add support for sync streams