modified to big endian network protocol