added r/w thread with potential connections