ensured host value is used properly