reverting to working version, no need for protobuf