added support for multiple pre/post_actions