added packet counter