refactor lookupd HTTP requests