porting to node-0.10