save working state