code generator for appframe