miner cleanup in pip