groups mode in sweep now splits input file as well