changed NPM hook