fix output filenames