output file name now moves dynamically