more endian support in save