add gen

add generator script