setPathValue: rewrite for adding missing paths. Closes #1