fix linking