begin patch file extractor