working on node api