dir patch