added modstats support