add generate script
Merge branch 'master' into develop