rework the scrambled packet counting