stats api from master branch