add encoder TraceFile and pass before EncodeTransform