moved basetemplate