added progress, fixed updateFile bug,