htons replaced for kul endian