add tracking of average packet rate