Fix no args bug
recreate maintemplate