add backend support for external domains - starts work on #7