add cross-domain functionality