changed threadId to be sent in as a long