updated for node 0.10, tests all ok