move reference update to end of student import