added abstractions for checking and resetting frame and delay counters