adding protobufs to compile chain + bug fixes