change timerEvent to withPeriodicEvent
flight: fix warnings