add code for course downloading