adds ThriftProtocolWrapper