mod to get connection and synapses