added comments to check_settings