set correct protocol version based on selected server