fix detecting correct server protocol