make stats.json work