bugfix: call sendmessage for every server message