finally fixed chat stuff