update for node 0.10+