added sane logging - and incremental file writing to batch downloader