update to code in latest nodejs