modify patch directory