Changed RootPathProvider to return an instance