added advanced recognition for external links