fix the init logger
fix the gofmt
fix #855 #859
fix #824