updated rules to use new rule model and JSON fomat for populating rules