sharedstate subscribe