add timer and event queue