add back removeAllFiles fix