updated nodefactory so that we have an untyped node factory with which to retrieve nodes.