change server mode