changed the way publish works