set inputDir and outputDir