bugfix: prevent output files with same name overwriting each other