new version 2.0.4

Added new event onGenerate, See doc