add postProcess hook. add tests