allow updatePath to create object
code optimisation
Merge pull request #63 from Freyskeyd/master

allow updatePath to create object