event rewriting and di lifecycle explore