save and retrieve selected object states