cleaned some eventmanager things
(hopefully faster now)