automatic classloading and event registering