connection to server working