started building out the messages functions