changed parser to work with entirel file