improved cds command