handle groups for output, and anonymise students