class objects instead of class names. events in cfg