added newrelic
refactored