modify postprocessor to make it capable for more situation