implemented /statistics endpoint