check and clean valid links