make wschat example work again