globally rename references to relations