added method for getting rules for a chain