Better debug code in the node app