preliminary endian support