WIP: allow input of patchfile.