add cashing for stats request(not tested)