Support for nodejs hooks