before remove autopublish