changed publish to distributeAll