add config to init socket