why not simply rootPath - given that the ResolveRootPath already handle such condition.  Or vice versa (don't do in ResolveRootPath - but rely on this instead).