use global config option for mode