adding support for node v0.9+