implemented subscriptionIds for the subscriptions of state change handlers