implements shareable dsid rule.
implements local dsid rule and handle rule.