second patch fixing the 'nil' issue with the host resolution