save state when re-create