read protobuf from files