add thread and note api (bug 879545)