add event_dispatcher to inject events