adding stats retrieval