support node 0.10.x and 0.8.x