created a new handler 'chat'