ensure newURL is defined