use exportLinks if not text/plain