added handling of multiple rules. added ttl to skip roll ups