little endian define. not sure why this worked fine on osx but not on some linux platforms