updated generate script, added new failed template.