set connection in specific object