modify the stats plugin structure.