added option to overwrite existing files (not adding #XX)