fix eventsManager, set it as a standalone package