rewrite config to be the new style