update global folders in template.class