automatically replace unique rule ID