chat initialization