clean-up d/rules