start ticker right before main loop.