save current working state