added stats api