replaced old seqnum tracking code with SequenceNumberStats