fix golint and gofmt errors