add .csv to exportation, fix progressbar