starting to implement storing messages