Revert "Revert "removed tmp files 2""

This reverts commit a3ed7db6efaf0e0563d0fb2ab4117e5de9ed6b6a.