clean up code generator