byte order now seems to be correct. however, signedness is not taken into account