add course & solve some bugs