Some maintenance work

- remove version checks
- fix test failure
- remove deprecated stats functions