added parse_request_uri function