added connect request code to client.