adding stream rw library