update cpd script