modify proto and gen batch