allow code generator to work without a module