adding and using stats endpoint