restruct the configs