new API for NodeType