Handler system for standalone codegen