patch directories