fixed lifecycle state fetching and serialization