use handler instead of timer

another attemp to reduce power consumption