added catch for  bad link