some cleaning and progressbar update