add newrelic hooks