improve wgf.go