changed client application to auto-detect server type