move link searching functions to webclient.go