got some thread communication, had to modify node.js stuff