add support to choose between targets on link insertion