added support for statistics