setup for codegen and crosstest