use new Path api (see #267)