codegen for probe side.