course id handling