exposed lookForBare and lookForLinks so other extensions can use it