use shared connection code