adding patchfile definition