added stats management