genext
template improvements
gen code