started working on stream reader