add support for multiple external domain