respect given_url if no resolved_url is given
remove exception debug code