simplify getByPath() and Scope.get()