handle case where 'host' is null