generic function handling for pre,post-proc