support for node >= 0.9