slight change to parse_path