rename rules.json to groups.json