updated for node v0.10.20