add FileWriter for trace