some changes in get url

changes in get url function. still bugs in the code