updated template, and created generator file