change some api for nodejs