using set_global() in repo mode too