for CWM recovery