added GetUrl function and open