rename infer to trace