support for node >= 0.10.x