publish subscribe and activites collection