add getChat to factory