patching files working