using terminator packet to signify end of read