clean up output, create dirs by default