added pkt_events.go and tests