adding new code to interpret path variabels