some model endian fixes