replaced settings array with settings object