node source code, bug fixes

bug fixes
node code