update entityrules