fix the server side's send message routien, so both the server and
client use the same method