move global config to its own file so there's no dependency cycles