also fix du for file size (use 'wc -c')
fix logic on file staging