split stat.go
test stat and fix