store and restore nested properties