option to check for non-unique names in the tree