starting to work on adding rulekey to set keys