fix to set output file format according to file extension