resolve host when possible