added a check in autowipe