add maxSocktes setting