added cleaning up output directory