todo, put stats into server pkg