save generated code