preProcessor for actions