added extra check for URL status