hosts validation; fixed breakage from prev commit