complete overhaul, made compatible with new relic plugin architecture 2.0