debug init socket