added connectAll method