add dependencies management
parse all rules, find duplicates