chat and logout fixes on server lags