add global disable parameter, if it is true, all the connections will be disabled