a way to serialize state to a human-viewable format: stateStringify