public code for firechat