added support for readable streams