minor addition to check for rootnode
manual merge