migrated network protocol to little endian