fix tray debug display
add SetTimerF lib, weird if syntax