better plaintext version generation