refactor stat and extend wkt3d import