add endian conv & work updates