made host check case-insensitive