add two modes - server / standard