reorganized path and outputDir variables