update templates and other things