got a rough version of a chat log working, needs lots of cleanup and improvements