add postprocess to api