add state subscriber in slave mode