updated parser
updated parser to deal with files containing patchdefs