v1.0 workign and tested
course update logic improved