client-server mode