fixed unencrypted secret key support