add non-server mode