add comparison with protocol buffers