removed autopublish and fixed some of the other issues regarding publishing