improve link search
improve link parsing
remove print
improve link parse