fixed migration problems; first lecture and courses tests pass