fix 'rules' and add 'search_terms'