add Check connection before contacting server