moved eventdispatcher.py into init