Use pathname instead of path_name