restructures how mercury config is structured/loaded.