add support for changing domains