making the output file path optional. defaults to the same as input