codegen for buses