added nodejs callback