added maxconnections setting