get protocol version method