[enh] improved dedup_names