added logging to download process