handle multiple endpoint lookup