added support for injecting outcoming events