added protection agains multiple adding hosts to matrices