major improvements in stats, frontend and api