host could be nil, but it's not being handled before trying to use it.