refined Connect to server Methods