added basics of event manager