fixed newline issue and sending to server from go client