added new relic, more optimizations