added support for stats