fixes for chat client / server