refactor to use the url from a parsed url string