move serverMode to server-config