removed preferGlobal option