chatpacket constructor added