migrate to node v0.8.x API