support for streams and buffers impl