extract parsing of a file