return Pathname instead of string, remove obsolete comment