fix format string
support new trw inference
fix