rewrite to use new internal path/point structure, input data format, otpprofiler.js library