updated template, troubleshooting template generation