add codes for course downloading in client