remove patches and change cpa.dep