testing server mode