change string to bytes and add ReadReply func