fixed service registration for event handlers and executors.