changed pathname to lowercase