update picotemplate and regen