update to new node api and some tweaks in logging