removed autopublish and added publication and subscription for posts