make this compatible with node 0.6, although not advertised