some utilites for node.js