add flag to use the endpoint URL returned instead of a random server