change to use rules.csv and change url paths