* remove unused vars
* merge all the settings when settings_dict() is called, not just `env`