integrating leap code into node code