tweaking the 'send-message' implementation so it actually works