handle error cases
implement TTW editing of existing rules