add basic support for generating unique output files