Global magic routing