make root path optional for addFile