upgrade to node v0.8.x API