added connect to server setup