preperations for patchinfo generation