change to single byte read/write