initial support for read stream

if this is ok i will further improvise it, thanks!