make sure to check against host-byte-order