adding stats endpoint