make chat semi-working