fixes allConnections

related to change type from Map to dequeue