added the event buffer; writing packet headers to the event buffer