add folder check to clean