resolves a path in an object