better handling of interval timers