added new relic agent; fixed bugs