added repairs to digest plain text