add baseDir option