add get rules method