added readbytes client method