bugfix and parse_file