added setOutputDir with const char*