clarify addNode logic some more and make sure we never insert a new node with a path we already have stored