updated custom event dispatcher with latest interface changes