add test host alive and better automatic config