improve broken link detection