fix chat and certificate