added stats API