free host before overwriting it with val from env