minor change to PacketWriter