change the way templates are stored