make connections defaultdict