pass writer to message writing thing
gofmt