new get stats functionality