make common connection for processing read/write