added support for custom external links