patterns for connection