add sendMessage to core (issues-1)