tidier code for updating static after course closure, and undo if course is "resumed"