finally got chat working