modify sendMessage interface.