using object for ruleEvents is deprecated now, use space separated event names string or array of string instead