add the implementation of stats.grok.se in my own way