add sanity check for a new node.