merging the statistics plugin to core