add rules and features