move outDir parsing