transform rules from file ok