added very basic event manager.