modified for new relic plugin