added latestMessage() to thread model