detect fig links