compatible with node v.0.4