implement trace file