changed how publish works