try to fix renaming of output files