better cds handling for stats