output filename bugfix