write hex bytes instead of bits