finally got the sequence of events down the way I want it. Time to restructure the message object so that I can use constructors when I push messages to the array