added auto decrypted write out to 'total'