progress on saving and retrieving messages, also added a util lib to alias an error logging function