edited a bit to also print out stats about files transfered with log