clean before rewritting datapath extraction