- Fixed statistics bug
- Added migration step to recalculate all stats
- auto refactoring