add option to set trace file location during record