make it faster to detect links of fragments