fixed loading of nodes

add parent to child as well as add children to parent