much cleaner way to extract the source links