more endian fixes