add in statistics handler