small changes to upload_course