switched order of message publishing to keep things from printing ugly