compatible only with node 0.10.x