added method for looking up an external id