switch persistence in config