cleanup
change how total is calculated
Fix lesson count
Fix lesson count
fix rules manager