rename all underlying references inside the renamed files