properly handle readbuffer