switch to server mode