fix friend fetcher algo to deal with duplicates