add sub-folder support
sub-folder format: Sxx for each group, in which xx is for group number