added stat retrieval