add global_or_local config option