made more additions to callbacks, events and event loops