compatible with node 0.6