support Node.js 0.10 and later