don't make a change if wd is not clean
remove debug messages