commented out the first iterative algo for switching servers