added clearDiskOnCompletion