removed autopublish and set up a basic pub and sub