add getRule method and mod preference mode