handling external definitions at definition sites