format *.i and fix treasure interface