added error check url