extracting connection