logic for polling servers