made output filename default to input file name with target extension