hooking up a stats endpoint