make sure a url exists - fixes #4