added post-action processing for agents