fixed single_line_group to do the proper thing and passing it to batchgrouper