working on event manager