add event types and Packet Handler