update to work with node v0.10.x