fix up url extraction