added mongo collections and publish method