changed the way to create nodes and inserting them

makes more sense now since getPath/setPath should always be the same
and it wasn’t