begin
parse patch file