fix mapping of pathname objects