refactoring rules excusion + custom Rules