rename head imports in files