building stubs with code generation. - inst and region are commented out