setting host before restart