resolve host dynamicially from header