updated for node v0.10.8