implemented chat extraction without error handling