fixed delete files, logs and stacking process