handle bad internet connections