JH - fixed bug with sendMessage
cleanup