adding in pathname