committing somewhat broken code to debug stats on teacher page