Switching context in domain mode