add ExtractLinks code