update local settings after finalize_update instead of update_code