initial implementation to nodedb.js