split output creation and postprocessing