refactored the progessbar to file edge-ot-edge