renamed byte order stuff