directives for paths.js high-level API