small refactorings: queue -> queue_t and timer_event.f takes no params