fix chat and build headers