wrapping nt realUrl in a try catch