updated enableHost method