bug fix in get url from console argument