add stats call to every route