add seq/id and format proto