saving state - work on error display