integrate client with server