updated the way settings handle the secret key generation (none previously) and storage