Remove autopublish and insecure packages; add publish subscribe