directives for path.js high-level API