added chatlogging