improve course parsing