added event listening ability to the queue