changed filewatcher to use std::string