added support for external_url