added support for multiple pre/post injections in output