changed message format from string to object, added JSON stringify and parse. this will let me filter messages by type instead of by string contents.