bugfix: create batch queue when necessary
bugfix: ostream.LocalFile seems to work