added new relic and cap code