maxSockets support added