troubleshooting delineate_basin.R  call from node.js