NEW: crash when outDir is not valid