XXX: stats: full rewrite