the AI now also writes it's mind to a file