remove preferGlobal cc @phated