lookup using external id