proper saving of rules based on weight
prevent roles from appearing in autocomplet when no roles avail.