parsing urls in open function has been improved