getPathRelativeToRoot added