change parse_stdout & scan file by file