Rewrite two settings relying on cmds