dump current state.