add try/catch to urlfetch