first attempt at being able to change domain