Unfinished stuff

Added chat logger
null fix
revert