update template gen, added status output
template update