before revise parse_uri