remove doGenerate attribute in Generator, fix no import for creator for external class