fixed sendmessage problem, working well enough to debug drtk