:add: rules and switch rules with UT