some refinements
refine course config refs #13
some refactoring