factor out verbose logging, print only after download is done