updated SSM to allow any state to be retrieved