make a patch file