combination with node and original main.cpp