added newrelic config and fixed index error