move chat into the helper module