renaming: correctly detect when qualifiaction of another name is require