added & 0xffff to checksum calc