include rule selection functionality