adding newrelic monitoring and fixing GET directory url error