add automatic link detection