Refactor node.registerNode with name