making resolution of path names or types more robust
fixing regression that has would not work with paths anymore