return connection on connect