make socket connection configurable