rewrite all config persistence, bypassing JSON conversions