added stats endpoint