corrected outputs so they are made in output dir