(tweaked export_student_events)