add NewRelic hooks