add support for “../” in keypaths, fixed bugs