used findFile().c_str() when dealing with std::string