changed from using dicts to paths