update output filename, etc.