remove some unused linking