check for links, not files