script to look for links