detect links