added support for object streams