properly check for name uniqueness in visualizations