add Pathname object