event queue working