introducing code to handle connection timeouts