updated structure and secret config for settings