respond to connectivity changes