add basic algorithm to fetch link