integrated event system
added basic logging: will be improved