switch to shared connection across threads