works on node 0.8.x and 0.10.x only