fixed sretrive to ignore bad links